<div class="modal-content" ng-controller="newConsultingCtrl">
    <div class="modal-header">
        <button type="button" class="close" ng-click="opt_close()" aria-label="Close">
      <em class="ion-ios-close-empty sn-link-close"></em>
    </button>
        <h3 class="modal-title text-center">
            <samll>
                <span ng-if="!news_id">编辑</span>
                <span ng-if="news_id">新增</span> 资讯
            </samll>
        </h3>
    </div>

    <form class="form-horizontal ng-pristine ng-valid ng-scope">
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">资讯标题</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" placeholder="资讯标题" ng-model="consulting.title">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <div class="radio col-sm-3">
                    <label class="custom-radio" ng-click="consulting.top=4">
                     <input type="radio" ng-checked="consulting.top==4">
                        <span>不推荐</span>
                </label>
                </div>
                <div class="radio  col-sm-3">
                    <label class="custom-radio" ng-click="consulting.top=1">
                     <input type="radio" ng-checked="consulting.top==1">
                        <span>top1</span>
                </label>
                </div>
                <div class="radio  col-sm-3">
                    <label class="custom-radio" ng-click="consulting.top=2">
                     <input type="radio" ng-checked="consulting.top==2">
                        <span>top2</span>
                </label>
                </div>
                <div class="radio  col-sm-3">
                    <label class="custom-radio" ng-click="consulting.top=3">
                     <input type="radio" ng-checked="consulting.top==3">
                        <span>top3</span>
                </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">摘要</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" placeholder="摘要" ng-model="consulting.summary">
            </div>
        </div>
        <div class="row">&nbsp;</div>
        <div class="row">
            <div for="inputEmail3" class="col-sm-2 control-label">

                资讯配图</div>
            <div class="col-sm-6" style="line-height: 30px;">
                建议图片比例：宽/高 2/1
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2"></div>
            <div class="col-sm-9">
                <span ng-repeat="img in consulting.imgs" ng-if="consulting.imgs.length>0" style="position: relative;">
                    <i class="ion-loop" onclick="this.value = null" ng-click="context_img=3;context_img_fn(3,$index)" ng-file-select1="onFileSelect($files,3,$index)" style="left: 10px;position: absolute;bottom: -50px;background:  rgba(154, 152, 152, 0.58);color: #fff;font-size: 30px;" ></i>
                    <img  class="img-thumbnail" style="height:140px; margin-bottom: 10px;" ng-src="{{img}}" alt="">
                    <i class="ion-trash-a" style="right: 10px;position: absolute;bottom: -50px;background:  rgba(154, 152, 152, 0.58);color: #fff;font-size: 30px;" ng-click="img_delete($index)"></i>
                </span>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-2"></div>
            <div style="font-size: 35px" class="col-sm-offset-2 glyphicon glyphicon-plus iscursor img-jia" ng-file-select1="onFileSelect($files,2)" onclick="this.value = null" ng-click="context_img=2;img_qu=false;">
            </div>
        </div>

        <div class="row">&nbsp;</div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">资讯正文</label>
            <div class="col-sm-9">
                <summernote id="summernote" config="options" lang="zh-CN" editable="editable" editor="editor" ng-model="consulting.content"></summernote>
            </div>
        </div>
    </form>
    <div class="modal-footer">
        <button type="button" class="btn btn-primary" ng-click="Submit()">完成</button>
    </div>
    <input type="file" id="asd1" ng-file-select1="onFileSelect($files,1)" style="display: none;">
</div>